/********** Global **********/

* {
  margin: 0;
}

html, body {
    color: #393733;
    margin: 0;
    padding: 0;
    background: #f4efd2;
}

body {
    font: 83%/1.4 arial, helvetica, sans-serif;
}

a {
  color: #105CB6;
  cursor: pointer;
  outline: none !important;
  text-decoration: none;
}

a:visited {
  color: #105CB6;
}

a:hover, a:focus {
  color: #003;
  text-decoration: underline;
}

a:active {
  color: #000;
}

a img {
  border: none;
}

.clr {
  clear: both;
}

ul {
  list-style-type: disc;
}

hr {
	border: 0;
	border-bottom: 1px solid #ccc;
}

.green {
  color: green;
}

.red {
  color: red;
}

.yellow {
  color: #BFB848;
}

.notimportant {
  color: #999;
}

label {
  display: block;
}

div.labelinline label {
  display: inline;
}

div.error-message {
  background-color: #fdd7d6;
  display: inline;
  padding: 3px;
  margin: 5px;
}

fieldset {
  border: 1px solid #aaa;
}

input[type=radio] {
  display: inline;
  margin-left: 12px;
  margin-right: 4px;
}

/********** Header **********/

div#header {
  background: url(../img/header_bg.png) repeat-x top left #642515;
}

div#header h1 {
  display: none;
}

div#header a#logo {
  float: left;
  margin-top: 9px;
  height: 114px;
  width: 220px;
}

div#header div.wrapper {
  width: 950px;
  margin: 0 auto;
  padding: 0;
}

/********** Menus **********/

div#header ul, ul#admin_nav {
  clear: both;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

div#header ul li, ul#admin_nav li {
  float: left;
  margin: 7px 2px 0 2px;
  padding: 0;
}

div#header ul#nav li {
  margin-top: 88px;
}

div#header ul#fast_nav li {
  float: right;
  margin: 0;
  background-color: #77300d;
}

ul#admin_nav li {
  float: right;
  margin: 0 2px;
}

div#header ul li a, ul#admin_nav li a {
  display: block;
  float: left;
  color: white;
  line-height: 38px;
  height: 38px;
  padding: 0 13px;
  font-size: 16px;
  border-radius : 5px 5px 0 0;
}

div#header ul#fast_nav li a {
  border-radius : 0;
}

div#header ul#fast_nav li a, ul#admin_nav li a {
  color: white;
  line-height: 25px;
  height: 25px;
  padding: 0 10px;
  font-size: 13px;
}

ul#admin_nav li a {
  color: #88321c;
  border-radius : 5px;
}

div#header ul li a:hover, ul#admin_nav li a:hover {
  text-decoration: none;
  padding-top: 1px;
  line-height: 35px;
  height: 35px;
  background-color: #642515;
}

div#header ul#fast_nav li a:hover {
  text-decoration: underline;
}

div#header ul li a.current, ul#admin_nav li a.current, ul#admin_nav li a:hover {
  text-decoration: none;
  background-color: #88321c;
}

ul#admin_nav li a.current, ul#admin_nav li a:hover {
  color: white;
  background-color: #88321c;
}

div#header form {
  margin-top: 25px;
  float: right;
}

div#header input {
  float: left;
  margin: 12px 0 0 0;
}

div#header div.right {
  float: right;
  width: 650px;
}

/********** Flash Messages **********/

div#flash_messages {
  margin: 0 0 10px 0;
  color: #6b683f;
  background: url(../img/tl.gif) no-repeat left top #fff999;
}

div#flash_messages a {
  text-decoration: underline;
  color: #6b683f;
}

div#flash_messages a:hover {
  text-decoration: none;
}

div#flash_messages.error {
  color: #6b403f;
  background-color: #ff9b99;
}

div#flash_messages.error a {
  color: #6b403f;
}

div#flash_messages.valid {
  color: #456b3f;
  background-color: #a8ff99;
}

div#flash_messages.valid a {
  color: #456b3f;
}

div#content div#flash_messages p {
  padding: 0 10px 0 20px;
}

div#flash_messages div.tr {
  margin: 0 0 0 10px;
  height: 10px;
  background: url(../img/tr.gif) no-repeat right top transparent;
}

div#flash_messages div.bl {
  background: url(../img/bl.gif) no-repeat left bottom transparent;
}

div#flash_messages div.br {
  margin: 0 0 0 10px;
  height: 10px;
  background: url(../img/br.gif) no-repeat right bottom transparent;
}

/********** Content **********/

div#content {
  padding: 10px 0 0 0;
}

div#content div.wrapper {
  width: 950px;
  margin: 0 auto;
}

div.iphone div#content div.wrapper {
  width: 305px;
}

div#content p {
  padding: 3px 0;
}

div#content h2, div#content h3 {
  font-weight: normal;
  margin-bottom: 10px;
}

/********** Form **********/

div#page form {
  margin: 0 1em 0 0;
}

div#page input[type=text], div#page input[type=password] {
  border: 1px solid #aaa;
}

div#page input.form-error, div#page textarea.form-error {
  border: 2px solid red;
}

div#page input, div#page textarea {
  font-size: 1em;
  padding: 0.2em;
}

div#page textarea {
  font-size: 1.3em;
}

div#page form p {
  padding: 0.5em 0;
}

div#page span.help {
  font-size: 0.95em;
  color: #666;
}

/********** Important **********/

div#content div.important {
  margin: 1.5em 0;
  padding: 0.5em;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  background-color: #f6f6f6;
}

div#content a.selected {
  border-bottom: 1px dotted #2772e3;
}

div#content div.important a.selected:hover {
  text-decoration: none;
}

div#content div.important p {
  padding: 0;
}

div#content div.important form {
  margin: 0;
}

div#content div.important form div.block {
  float: left;
  margin: 0 0.5em 0 0;
}

div#content div.important form input[type=text] {
  width: 80px;
}

/********** Page **********/

div#page {
  background: url(../img/tl.gif) no-repeat left top white;
}

div#pagecontent {
  padding: 5px 10px 10px 10px;
}

div#page div.tr {
  margin: 0 0 0 5px;
  height: 5px;
  background: url(../img/tr.gif) no-repeat right top transparent;
}

div#page div.bl {
  background: url(../img/bl.gif) no-repeat left bottom transparent;
}

div#page div.br {
  margin: 0 0 0 5px;
  height: 5px;
  background: url(../img/br.gif) no-repeat right bottom transparent;
}

/********** Footer **********/

div#footer {
  clear: both;
}

div#footer.iphone {
  width: 320px;
  margin: 0 auto;
}

div#footer, div#footer a {
  color: #111;
}

div#footer p {
  padding: 1em;
  font-size: 1em;
  text-align: center;
}

div#footer p span {
  font-size: 0.8em;
  color: #333;
}


/********** Buttons **********/

.buttons a , .buttons button{
    display:block;
    float:left;
    margin:0 7px 0 0;
    background-color:#f5f5f5;
    border:1px solid #dedede;
    border-top:1px solid #eee;
    border-left:1px solid #eee;

    font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
    font-size:100%;
    line-height:130%;
    text-decoration:none;
    font-weight:bold;
    color:#565656;
    cursor:pointer;
    padding:5px 10px 6px 7px; /* Links */
    -moz-border-radius: 6px;
}

div.important .buttons a, div.important .buttons button{
  border:1px solid #bbb;
  border-top:1px solid #ccc;
  border-left:1px solid #ccc;
}

.buttons button{
    width:auto;
    overflow:visible;
    padding:4px 10px 3px 7px; /* IE6 */
}

.buttons button[type]{
    padding:5px 10px 5px 7px; /* Firefox */
    line-height:17px; /* Safari */
}

*:first-child+html button[type]{
    padding:4px 10px 3px 7px; /* IE7 */
}

.buttons button img, .buttons a img{
    margin:0 3px -3px 0 !important;
    padding:0;
    border:none;
    width:16px;
    height:16px;
}

/* STANDARD */

button:hover, .buttons a:hover{
    background-color:#dff4ff;
    border:1px solid #c2e1ef;
    color:#336699;
}

.buttons a:active{
    background-color:#6299c5;
    border:1px solid #6299c5;
    color:#fff;
}

/* POSITIVE */

button.positive, .buttons a.positive{
    color:#529214;
}

.buttons a.positive:hover, button.positive:hover{
    background-color:#E6EFC2;
    border:1px solid #C6D880;
    color:#529214;
}

.buttons a.positive:active{
    background-color:#529214;
    border:1px solid #529214;
    color:#fff;
}

/* NEGATIVE */

.buttons a.negative, button.negative{
    color:#d12f19;
}

.buttons a.negative:hover, button.negative:hover{
    background:#fbe3e4;
    border:1px solid #fbc2c4;
    color:#d12f19;
}

.buttons a.negative:active{
    background-color:#d12f19;
    border:1px solid #d12f19;
    color:#fff;
}

/********** Icons **********/

a.add, a.edit, a.delete {
  background-image: none;
  background-repeat: no-repeat;
  background-position: left center;
  padding-left: 20px;
  border: none;
}

a.add {
  background-image: url(../img/add.png);
}

a.edit {
  background-image: url(../img/edit.png);
}

a.delete {
  background-image: url(../img/delete.png);
}


/********** Paginator **********/

div#paginator {
  padding: 1em 0 0 0;
  text-align: center;
}

div#paginator a {
  margin: 0.2em 0.3em;
  padding: 0.15em 0.4em;
  border: 1px solid #105CB6;
}

div#paginator a:hover {
  color: white;
  background-color: #105CB6;
  text-decoration: none;
}

/********** Tables **********/

div#page table {
  width: 100%;
}

div#page table tr td, div#page table th {
  padding: 0.1em 0.3em;
}

div#page table tr:hover td, div#page table tr.odd:hover td {
  background-color: #fff999;
}

div#page table tr.light td, div#page table tr.light th {
  background-color: #dedede;
}

div#page table.no_effect tr:hover td, div#page table.no_effect tr.odd:hover td {
  background-color: transparent;
}

div#page table tr.odd td {
  background-color: #f0f0f0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

div#page table tr td.num {
  font-weight: bold;
  width: 1px;
}

div#page table th {
  text-align: left;
  color: #333;
  background-color: #8c3b28;
  color: white;
  border-bottom: 1px solid #404c5b;
}

/********** Links **********/

div#links {
}

div#links img.cover {
  float: left;
  padding: 7px 10px 0 0;
}

div#links div.entry {
  margin: 5px 0;
  padding: 5px 10px;
}

div#links div.entry.odd {
  border: 1px solid #e7e7de;
  background-color: #f3f3ea;
}

div#links p.content {
  text-align: justify;
  font-size: 105%;
}

div#links p.infos {
  padding-top: 0;
  color: #999;
}

div#links a.notimportant, div#stories span.notimportant {
  color: #666;
}

div#links a.admin {
  color: #ff5e3d
}

/********** Comments **********/

div#comments div.entry {
  margin: 3px 0;
  padding: 3px 3px 6px 3px;
  border-bottom: 1px solid #e7e7de;
}

a.tweet {
  color: #393733;
}

a.tweet:hover {
  text-decoration: none;
  background-color: #f0f0f0;
}


/********** AutoComplete **********/

div.auto_complete {
     position         :absolute;
     width            :0px;
     background-color :#f4f4f4;
     border           :1px solid #888;
     margin           :0px;
     padding          :0px;
	 border-bottom-left-radius: 8px;
     border-bottom-right-radius: 8px;
}

li.autocomplete { 
	list-style-type: none;
	background-color: #f4f4f4;
}

li.selected.autocomplete { 
	list-style-type: disc;
}

a.autocomplete {
	text-decoration: none;
}

/********** boxarea **********/

div.boxarea {
	background-color: lightgray;
	border: 1px solid #808080;
	border-radius: 8px 8px;
	padding: 6px 6px 8px 8px;
	margin: 4px;
	width: 250px;
	text-align: center;
}

a.boxarea {
	display: block;
	color: #303030;
	text-decoration: none;
}